﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Daphne.SharedMetro;

namespace Daphne.ControlsMetro.Clock
{
    /// <summary>
    /// Interface for the class implementing game clock
    /// </summary>
    public interface IClock
    {
        /// <summary>
        /// Properties returning given times
        /// </summary>
        TimeSpan WhiteMoveTime
        { get; }

        TimeSpan BlackMoveTime
        { get; }

        TimeSpan WhiteGameTime
        { get; }

        TimeSpan BlackGameTime
        { get; }

        /// <summary>
        /// Manipulation functions
        /// </summary>
        void Start();
        void Stop();
        void Pause();
        void Resume();

        /// <summary>
        /// Clock initialization
        /// </summary>
        void Init(ClockSettings clockSettings);

        /// <summary>
        /// Changes the clock's side to move
        /// </summary>
        void ChangeSTM();
    }
}
